/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package session;

import entity.Player;
import javax.ejb.EJB;
import javax.ejb.Stateless;
import session.manager.PlayerManagerBeanLocal;

/**
 *
 * @author antonio
 */
@Stateless
public class SearchBean implements SearchBeanLocal {
    
    @EJB
    private PlayerManagerBeanLocal playerManager;

    @Override
    public boolean search(String username) {
        Player player = this.playerManager.find(username);
        return player != null;
    }

}
